<table class="table table-striped table-bordered bootstrap-datatable datatable responsive">
    <thead>
    <tr>
        <th>STT</th>
        <th>Username</th>
        <th>Fullname</th>
        <th>Phone</th>
        <th>Email</th>
        <th>Gender</th>
        <th>Level</th>
        <th>Function</th>
    </tr>
    </thead>
    <tbody>
    <tr>
        <?php if($listusers != NULL){ ?>
        <?php $i=1; foreach($listusers as $data){ ?>
        <td><?php echo $i; ?></td>
        <td class="center"><?php echo $data['user_name']; ?></td>
        <td class="center"><?php echo $data['user_fullname']; ?></td>
        <td class="center"><?php echo $data['user_phone']; ?></td>
        <td class="center"><?php echo $data['user_email']; ?></td>
        <td class="center"><?php if($data['user_gender'] == 1){ echo "Nam";}else{ echo "Nữ";} ?></td>
        <td class="center"><?php if($data['user_level'] == 1){ echo "<span class='red'>Admin</span>";}else{ echo "Member";} ?></td>
        <td class="center">
            <a class="btn btn-info" href="<?php echo base_url()?>'admincp/user/editUser/<?php echo $data['user_id'] ?>">
                <i class="glyphicon glyphicon-edit icon-white"></i>
                Edit
            </a>
            <a class="btn btn-danger" href="#">
                <i class="glyphicon glyphicon-trash icon-white"></i>
                Delete
            </a>
        </td>
    </tr>
    <?php $i++; } } ?>
    </tbody>
</table>
<div class="pagination-list"><?php echo $this->pagination->create_links(); ?></div>